package com.hyz.reggie.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.hyz.reggie.dto.DishDto;
import com.hyz.reggie.pojo.Dish;

import java.util.List;

public interface DishService extends IService<Dish> {
    void saveDish(DishDto dishDto);

    IPage<DishDto> findByPage(Integer page, Integer pageSize, String name);

    DishDto modifyDishById(Long id);

    void updateDishDto(DishDto dishDto);

    void deleteById(Long[] ids);

    List<DishDto> getList(Long categoryId,Integer status);

    void deleteByIds(Long[] ids);
}
